package cn.xopencode.score.api.enums.innovate;

import cn.xopencode.common.framework.core.DoubleArrayValuable;
import cn.xopencode.common.framework.core.IntArrayValuable;

import java.util.Arrays;

/**
 * 级别分数枚举
 */
public enum SuggestScoreEnum implements DoubleArrayValuable {

    WORKSHOP(1.0, "车间级"),
    COMPANY(2.0, "公司级");

    public static final double[] ARRAYS = Arrays.stream(values()).mapToDouble(SuggestScoreEnum::getScore).toArray();

    /**
     *  级别
     */
    private final Double score;
    /**
     * 描述
     */
    private final String name;

    SuggestScoreEnum(Double score, String name) {
        this.score = score;
        this.name = name;
    }

    public Double getScore() {
        return score;
    }

    public String getName() {
        return name;
    }

    @Override
    public double[] array() {
        return ARRAYS;
    }

}
